Skip to content

feat: modernize Android build toolchain#271

Merged
jokerttu merged 2 commits into
mainfrom
feat/modernize-android-build-toolchain
Jun 5, 2026
Merged

feat: modernize Android build toolchain#271
jokerttu merged 2 commits into
mainfrom
feat/modernize-android-build-toolchain

Conversation

@jokerttu
Copy link
Copy Markdown
Collaborator

@jokerttu jokerttu commented Jun 4, 2026

  • Convert the plugin's android/build.gradle + settings.gradle to Kotlin DSL (.kts).
  • Plugin: apply KGP conditionally (only on AGP < 9). AGP 9+ ships built-in Kotlin, so applying KGP there is unnecessary and triggers a Flutter deprecation warning.
  • Replace deprecated kotlinOptions {} with kotlin { compilerOptions {} } in plugin and example.
  • Raise Java/Kotlin target 11 → 17 (matches Flutter templates and Navigation SDK requirement).
  • Bump example Gradle wrapper 8.13 → 8.14.3 and Kotlin (KGP) 2.1.0 → 2.3.20.
  • Gate the ktfmt formatter behind -Pktfmt (via melos run format:android) so it is never forced onto apps that depend on this plugin.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I updated/added relevant documentation
  • I added new tests to check the change I am making
  • All existing and new tests are passing.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented Jun 4, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@jokerttu jokerttu force-pushed the feat/modernize-android-build-toolchain branch from a0e885a to d81c539 Compare June 5, 2026 05:53
jokerttu added 2 commits June 5, 2026 08:54
- Convert the plugin's android/build.gradle + settings.gradle to Kotlin DSL (.kts).
- Plugin: apply KGP conditionally (only on AGP < 9).
- Replace deprecated `kotlinOptions {}` with `kotlin { compilerOptions {} }` in plugin and example.
- Raise Java/Kotlin target 11 → 17 (matches Flutter templates and Navigation SDK requirement).
- Bump example Gradle wrapper 8.13 → 8.14.3 and Kotlin (KGP) 2.1.0 → 2.3.20.
- Gate the ktfmt formatter behind `-Pktfmt` so it is never forced on consuming apps.
@jokerttu jokerttu force-pushed the feat/modernize-android-build-toolchain branch from d81c539 to b8a72ba Compare June 5, 2026 05:54
Copy link
Copy Markdown
Collaborator

@illuminati1911 illuminati1911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jokerttu jokerttu merged commit 38ca898 into main Jun 5, 2026
16 checks passed
@jokerttu jokerttu deleted the feat/modernize-android-build-toolchain branch June 5, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants